package cn.edu.sdjzu.xg.kcsj.domain;
import cn.edu.sdjzu.xg.kcsj.security.User;

import java.io.Serializable;

public class SA implements Comparable<SA>, Serializable {
    private Integer id;
    private int score;
    private User student;
    private Activity activity;
    private int state;

    public SA(Integer id, int score, User student, Activity activity, int state) {
        this.id = id;
        this.score = score;
        this.student = student;
        this.activity = activity;
        this.state = state;
    }

    public SA() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public User getStudent() {
        return student;
    }

    public void setStudent(User student) {
        this.student = student;
    }

    public Activity getActivity() {
        return activity;
    }

    public void setActivity(Activity activity) {
        this.activity = activity;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "SA{" +
                "id=" + id +
                ", score=" + score +
                ", student=" + student +
                ", activity=" + activity +
                ", state=" + state +
                '}';
    }

    @Override
    public int compareTo(SA o) {
        return this.id - o.id;
    }
}
